﻿using Core.Factories;
using Core.IPresentation;
using Core.IServices;
using Core.Queries;
using Core.ViewModels;
using Front.Controllers;
using Library.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Front.Areas.Admin.Controllers
{
    [Authorize(Roles = "Admin")]
    public class UserController : BaseController
    {
        //IManageRoleService roleService;
        IRequestFactory requestFactory;
        //public UserController(IManageRoleService roleService, IRequestFactory requestFactory, ILogger logger) : base(logger)
        //{
        //    this.roleService = roleService;
        //    this.requestFactory = requestFactory;
        //}

        public UserController(IRequestFactory requestFactory, ILogger logger)
            : base(logger)
        {           
            this.requestFactory = requestFactory;
        }

        //
        //// GET: /Admin/Localization/
        //public ActionResult Index()
        //{
        //    return View(CreateVM());
        //}

        public ActionResult Index()
        {
            return View();
        }

        //public UserVM CreateVM()
        //{
        //    var model = new UserVM();
        //    var request = requestFactory.GetInstance<RoleQuery>(new RoleQuery());
        //    model.Roles = roleService.FindBy(request).List;
        //    return model;
        //}
    }
}